// Import Vue
import Vue from 'vue';

// Import F7
import Framework7 from 'framework7/dist/framework7.esm.bundle.js';

// Import F7 Vue Plugin
import Framework7Vue from 'framework7-vue/dist/framework7-vue.esm.bundle.js';

// Import F7 Styles
import Framework7Styles from 'framework7/dist/css/framework7.css';

// Import Icons and App Custom Styles
import IconsStyles from '@/css/icons.css';
import AppStyles from '@/css/app.css';

// Import Routes
import Router from '@/router/router.js'

// Import App Component
import App from '@/app';
import AndroidBridge from '@/utils/AndroidBridge';

// Import ajax
import { http } from '@/utils'
// Import stores
import store from '@/store'

//jquery
import $ from 'jquery'

// Init F7 Vue Plugin
Vue.use(Framework7Vue, Framework7)

Vue.prototype.$post = http.post;
Vue.prototype.$get = http.get;

// Init App
new Vue({
	el: '#app',
	template: '<app/>',
	store,
	AndroidBridge,
	// Init Framework7 by passing parameters here
	framework7: {
		id: 'io.framework7.testapp', // App bundle ID
		name: 'Framework7', // App name
		theme: 'auto', // Automatic theme detection
		// App routes
		routes: Router,
	},
	// Register App Component
	components: {
		app: App
	}
});

//定义全局变量
global.COURSES = {
  	path:'http://192.168.1.108:8080/yiyang',//本地测试地址
  	careId:'',//护工id
  	careName:'',//护工名字
	loginMessage:{},
	log_message:true,
  	error_message:true,
}